package com.adaxi.adc.business.passengertrip.feign.fallback;

import com.adaxi.adc.business.passengertrip.feign.service.IPassengerFeignService;
import com.adaxi.adc.business.passengertrip.feign.service.IVehicleTripFeignService;
import com.adaxi.adc.business.passengertrip.pojo.AdcPassenger;
import com.adaxi.adc.business.passengertrip.pojo.AdcRoutePrice;
import com.adaxi.adc.common.common.CommonResult;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

public class ExampleFeignFallback   implements IVehicleTripFeignService, IPassengerFeignService {


    @Override
    public CommonResult queryById(String id) {
        return CommonResult.FAILURE("Feign接口调用失败");
    }

    @Override
    public CommonResult updateById(String id, Integer numToReduce) {
        return CommonResult.FAILURE("Feign接口调用失败");
    }

    @Override
    public CommonResult<AdcRoutePrice> queryVARById(String id) {
        return CommonResult.FAILURE("Feign接口调用失败");
    }

    @Override
    public CommonResult<AdcPassenger> queryById1(String id){
        return CommonResult.FAILURE("Feign接口调用失败");
    }

    @Override
    public CommonResult findAllRoutePrices(){
        return null;
    }

    @Override
    public CommonResult getTrips(int page, int pageSize) {
        return CommonResult.FAILURE("Feign接口调用失败");
    }
}
